From 343da423ced783d9d666ae9f64e70e53258cb8f4 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Thu, 2 Mar 2006 03:21:17 +0100 Subject: [PATCH] Fix violation of C90 mixed-code-and-declarations restriction. Signed-off-by: Ewan Mellor --- tools/xenstore/xenstore_control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xenstore/xenstore_control.c b/tools/xenstore/xenstore_control.c index 80685c59d7..5433bfc811 100644 --- a/tools/xenstore/xenstore_control.c +++ b/tools/xenstore/xenstore_control.c @@ -7,6 +7,8 @@ int main(int argc, char **argv) { + struct xs_handle * xsh; + if (argc < 2 || strcmp(argv[1], "check")) { @@ -18,7 +20,7 @@ int main(int argc, char **argv) return 2; } - struct xs_handle * xsh = xs_daemon_open(); + xsh = xs_daemon_open(); xs_debug_command(xsh, argv[1], NULL, 0); -- 2.30.2